// show all the bytes of a number by bytes
#include <stdio.h>
typedef unsigned char * Pointer;
void showBytes(Pointer first, size_t byteCount) {

    for(size_t i = 0; i < byteCount; i ++) {
        printf("%.2x",*first);
        first++;
    }
    printf("\n");
}

void showInt(unsigned int x) {
    showBytes((Pointer) &x, sizeof(unsigned int));
}

int main() {
    unsigned int testNum= 0x012345678;
    testNum = 0x0444f26e;
    printf("int size:%lu\n", sizeof(unsigned int));
    showInt(testNum);
    return 1;
}

